package com.cby.operation.pay.bean

import android.os.Parcel
import android.os.Parcelable

data class LinkInfo(
                    var name: String?,
                    var url: String?,
                    var target: String?

) : Parcelable {

    constructor(parcel: Parcel) : this(
        parcel.readString(),
        parcel.readString(),
        parcel.readString()
    ) {
    }


    companion object CREATOR : Parcelable.Creator<LinkInfo> {
        override fun createFromParcel(parcel: Parcel): LinkInfo {
            return LinkInfo(parcel)
        }

        override fun newArray(size: Int): Array<LinkInfo?> {
            return arrayOfNulls(size)
        }
    }

    override fun describeContents(): Int {
        return 0
    }

    override fun writeToParcel(dest: Parcel, flags: Int) {
        dest.writeString(name)
        dest.writeString(url)
        dest.writeString(target)
    }


}
